#include <stdio.h>

int main()
{
    int m,n,i,j;
    int n0=0,n1=0,n2=0,n3=0,n4=0,n5=0,n6=0,n7=0,n8=0,n9=0;
    scanf("%d %d",&m,&n);
    
    for(i=m;i<=n;i++)
    {
        j=i;
        while (j>0)
        {
            int c=j%10;
            j=j/10;
            
            switch (c)
            {
                case 0:
                    n0++;
                    break;
                
                case 1:
                    n1++;
                    break;

                case 2:
                    n2++;
                    break;

                case 3:
                    n3++;
                    break;

                case 4:
                    n4++;
                    break;

                case 5:
                    n5++;
                    break;

                case 6:
                    n6++;
                    break;
                
                case 7:
                    n7++;
                    break;

                case 8:
                    n8++;
                    break;

                case 9:
                    n9++;
                    break;
            }
        }
    }

    printf("%d %d %d %d %d %d %d %d %d %d",n0,n1,n2,n3,n4,n5,n6,n7,n8,n9);
    return 0;
}